
# file = sys.stdout
# file.write("Hello")
# print('world')
#
# file =open('test.txt','r')
# print(file.read(3))

with open('test.txt','r',encoding='utf-8') as file2:
    # print(file2.readlines())
    list2=file2.readlines()
    print(list2)

str = "llll hh"
with open('test.txt', 'w', encoding='utf-8') as file3:
    file3.write(str)
list3 = '1,2,4'
with open('test.txt','a',encoding='utf-8') as file4:
    file4.write(list3)

